/**
 * Copyright (C), 2015-2019, 静修教育咨询有限公司
 * FileName: StudentMapper
 * Author:  SAGIRI
 * Date:     2019/7/22 0022 13:51
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.ruimei.mapper;

import com.ruimei.entitys.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 〈概要〉<br> 
 * 〈〉
 *
 * @author SAGIRI
 * @create 2019/7/22 0022
 * @since 1.0.0
 */
@Repository
public interface StudentMapper {
    int updateStudent(Student student);

    List<Hobby> selectStudentHobby(@Param("id") String id);

    int insertHobby(Hobby hobby);

    int updateHobby(Hobby hobby);

    List<Reward> selectStudentReward(@Param("id") String id);

    int insertReward(Reward reward);

    int updateReward(Reward reward);

    String selectBindexists(@Param("id")String id,@Param("relation")String relation);

    int bindRelation(@Param("parentId") String parentId,@Param("id")String id,@Param("relation")String relation);

    String selectStudentId(@Param("studentIdCard") String studentIdCard);

    Student getStudentById(@Param("studentId") String studentId);
    List<Parent> getParentByStudentId(@Param("studentId") String studentId);
}
